import request from '@/utils/request'
import qs from 'qs'

export function login (account, password) {
  return request({
    url: '/auth/login?' + qs.stringify({ account, password, clientCode: 1 }),
    method: 'post'
  })
}

export function getInfo () {
  return request({
    url: '/account/current',
    method: 'post'
  })
}

export function logout () {
  return request({
    url: '/auth/logout?' + qs.stringify({ clientCode: 1 }),
    method: 'post'
  })
}
